//
//  viewershader.cpp
//  xed_vfx_engine
//
//  Created by 岳伸 富田 on 11/10/28.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#include "viewershader.h"
#include "viewershadercode.h"

namespace Graphic {
/**
 * Class: ViewerShader
 * Desc:
 */

/**
 * Name: Init()
 * Desc:
 */
bool ViewerShader::Init()
{
  ShaderID shaderId=buildShader(ViewerShaderCode::vertexShaderCode,ViewerShaderCode::fragmentShaderCode);
  if(shaderId==-1){
	return false;
  }
  
  bool stat=ActivateUniformLocation(shaderId,"InColor",UniformLocColor);
  if(stat==false){
	printf("Failed to activate uniform location '%s'\n","Color");
  }
  
  return true; 
}

/**
 * Name: Destroy()
 * Desc:
 */
void ViewerShader::Destroy()
{
  //
}


} // namespace Graphic
